package com.scgl.zuzhi.domain;

import com.ruoyi.system.api.domain.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 部门对象 scgl_department
 *
 * @author ruoyi
 * @date 2024-10-25
 */
public class ScglDepartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门id */
    private Long id;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String bmname;

    /** 部门编码 */
    @Excel(name = "部门编码")
    private String bmcoding;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long uid;

    /** 备注 */
    @Excel(name = "备注")
    private String bz;

    /** 子部门 */
    private List<ScglDepartment> children = new ArrayList<ScglDepartment>();


    /** 部门状态 */
    @Excel(name = "部门状态")
    private String status;

    @Excel(name = "上级部门id")
    private Long parentId;

    @Excel(name = "显示顺序")
    private Long orderNum;

    private String uname;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBmname() {
        return bmname;
    }

    public void setBmname(String bmname) {
        this.bmname = bmname;
    }

    public String getBmcoding() {
        return bmcoding;
    }

    public void setBmcoding(String bmcoding) {
        this.bmcoding = bmcoding;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }


    public List<ScglDepartment> getChildren() {
        return children;
    }

    public void setChildren(List<ScglDepartment> children) {
        this.children = children;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bmname", getBmname())
            .append("bmcoding", getBmcoding())
            .append("createTime", getCreateTime())
            .append("uid", getUid())
            .append("bz", getBz())
            .append("status", getStatus())
            .append("parentId", getParentId())
            .append("ordetNum", getOrderNum())
            .toString();
    }
}
